const PROXY_CONFIG = {
    '/api': {
      target: 'http://10.6.181.221:9008/api',
      secure: true,
      logLevel: 'debug',
      changeOrigin: true,
      pathRewrite: {
        '^/api': ''
      },
      bypass: (req, res, proxyOptions) => {
        console.error('proxy request:', req.url);
        console.error('proxy response:', res._header);
        console.error('proxy _hasBody:', res._hasBody);
      }
    },
    '/geoserver': {
      target: 'http://10.6.181.209:9000',
      secure: true,
      logLevel: 'debug',
      changeOrigin: true,
      bypass: (req, res, proxyOptions) => {
        console.error('proxy request:', req.url);
        console.error('proxy response:', res._header);
        console.error('proxy _hasBody:', res._hasBody);
      }
    },
    '/yjq_web': {
      target: 'http://localhost:4200',
      secure: true,
      logLevel: 'debug',
      changeOrigin: true,
      pathRewrite: {
        '^/yjq_web': ''
      },
      bypass: (req, res, proxyOptions) => {
        console.error('proxy request:', req.url);
        console.error('proxy response:', res._header);
        console.error('proxy _hasBody:', res._hasBody);
      }
    }
  };
  module.exports = PROXY_CONFIG;
